package com.sushi.repository.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * 消息 实体类
 * @date 2023-04-13
 * @time 14:20:49
 * @author Administrator
 */
@Getter
@Setter
@ToString
@TableName("`message`")
public class MessageEntity extends BaseEntity<MessageEntity> implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @TableId("`id`")
    private String id;

    /**
     * 标题
     */
    @TableField("`title`")
    private String title;

    /**
     * 内容
     */
    @TableField("`content`")
    private String content;

    /**
     * 接收人id
     */
    @TableField("`target_user_id`")
    private String targetUserId;

    /**
     * 是否阅读过  是否已读： 0-未读 1-已读
     */
    @TableField("`is_read`")
    private Boolean isRead;

}